<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/


defined('_JEXEC') or die('Retricted Access');
global $option, $jbconfig ;
$item = $this->item;
?>		
<div class="moduletable job-box">	
<div id="jobboard-content">
		<h3>
			<?php echo JText::_('Account balance')?>
		</h3>
		
	    <table class="tabledata accountdetails">
	    	
	        <?php if($jbconfig['currency']->get('mode')=='special_currency'){?>
			<tr>
				<td width="50%">
					<?php echo JText::_('Credit balance')?>:
				</td>
				<td>
					<?php echo $item->credit_balance; ?>
				</td>
			</tr>
			<?php }?>
			<tr>
				<td width="50%">
					<?php echo JText::_('Standard posting left')?>:
				</td>
				<td>
					<?php echo $item->standard_posts_balance; ?>
				</td>
			</tr>
			<tr>
				<td width="50%">
					<?php echo JText::_('Premium posting left')?>:
				</td>
				<td>
					<?php echo $item->premium_posts_balance; ?>
				</td>
			</tr>
		</table>
			
		<?php if ($jbconfig['billing']->get('subscription_fee_enabled')) { ?>
		<h3>
	           <?php echo JText::_('Search resume');?>
	    </h3>
	    <table  class="tabledata accountdetails">
	    	<tr>
				<td>
					<?php echo JText::_('Start date')?>:
				</td>
				<td>
					<?php
						if(($item->begin_date_search_resume=='') || ($item->begin_date_search_resume==null) || ($item->begin_date_search_resume=='0000-00-00 00:00:00')) echo "N/A"; 
						else echo date(str_replace('%', '', $jbconfig['general']->get('format_date')), strtotime($item->begin_date_search_resume));
					?>
				</td>
			</tr>
			<tr>
				<td>
					<?php echo JText::_('End date')?>:
				</td>
				<td>
					<?php 
						if(($item->end_date_search_resume=='') || ($item->end_date_search_resume==null) || ($item->end_date_search_resume=='0000-00-00 00:00:00')) echo JText::_("N/A"); 
						else echo date(str_replace('%', '', $jbconfig['general']->get('format_date')),strtotime($item->end_date_search_resume));
					?>
				</td>
			</tr>

	    </table>
			<?php } ?>	
			
</div>
</div>
